package com.parking.mgr.common.exception;

import com.parking.mgr.common.exception.enums.IBaseExceptionEnum;
import lombok.EqualsAndHashCode;

/**
 * @ClassName ServiceException
 * @Description 业务异常
 * @Auther: zhijianpu
 * @Date: 2023/5/18
 */
@EqualsAndHashCode(callSuper = true)
public class ServiceException extends BaseException {

    public ServiceException(String errorMessage) {
        super(errorMessage);
    }

    public ServiceException(Integer code, String errorMessage) {
        super(code, errorMessage);
    }

    public ServiceException(IBaseExceptionEnum exception) {
        super(exception.getCode(), exception.getMessage());
    }

}
